package com.xcity.game.combat.skill;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.game.combat.Action;
import com.xcity.game.skill.Skill;
import com.xcity.game.skill.template.SkillTemplate;

public abstract class CombatSkill {

	protected Skill skill;
	
	public CombatSkill(Skill skill) {
		this.skill = skill;
	}
	
	@JSONField(serialize = false)
	public SkillTemplate getTemplate() {
		return skill.getTemplate();
	}
	
	public int getId() {
		return skill.getId();
	}
	
	public String getName() {
		return skill.getName();
	}
	
	public String getDesc() {
		return skill.getDesc();
	}
	
	public String getIcon() {
		return skill.getIcon();
	}
	
	public int getMp() {
		return skill.getTemplate().getMp();
	}
	
	/** 计算伤害 */
	public abstract void calcDamage(Action action);
	
}
